  "use strict";


  import {Exception} from "./Exception";
  import {Pool} from "../Pool";

  export class EntityAlreadyHasComponentException extends Exception {
    /**
     * Entity Already Has Component Exception
     * @constructor
     * @param message
     * @param index
     */
    public constructor(message:string, name:string) {
      super(message + "\nEntity already has a component at index (" + name + ") ");
    }
  }

